package xyz.bali16.module.blog.service.impl;

import com.gitee.starblues.annotation.Caller;
import org.springframework.web.multipart.MultipartFile;
import xyz.bali16.application.core.model.Result;
import xyz.bali16.module.blog.utils.PageUtils;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author bali2 on 28/3/2023.
 * @version 1.0
 */
@Caller("netdiskService")
public interface NetdiskServiceCaller {

    @Caller.Method("uploadFile")
    Result<String> uploadFile(MultipartFile file, String fileUserId, String fileStorageId, String fileFolderId, HttpServletRequest request);

    @Caller.Method("downloadFile")
    void downloadFile(String fileUserId, String fileStorageId, String fileId, HttpServletRequest request, HttpServletResponse response);

    @Caller.Method("list")
    PageUtils list(String fileStorageId, String fileFolderId, Integer curPage, Integer pageSize) ;
    @Caller.Method("deleteFile")
    boolean deleteFile(String fileId);
    
    @Caller.Method("createService")
    boolean createService(String name,String serviceId);
    
    @Caller.Method("existService")
    boolean existService(String serviceId);

}
